export const InvoiceStore = {
  namespaced: true,
  state: {
    invoiceInfo: null,
    invoiceDetails: null,
  },
  mutations: {
    setInvoiceInfo(state: { invoiceInfo: null | object }, invoiceInfo: object) {
      state.invoiceInfo = invoiceInfo;
    },
    setInvoiceDetails(
      state: { invoiceDetails: null | object },
      invoiceDetails: object
    ) {
      state.invoiceDetails = invoiceDetails;
    },
  },
};
